package com.ak.common.utils;

import java.io.UnsupportedEncodingException;
import java.util.Base64;

/**
  * 生成客户端 AuthorizationValue
 * @author Vean
 *
 */
public class AuthorizationUtil {

	public static void main(String[] args) throws UnsupportedEncodingException {
		String text = "ak-app:123456";
		byte[] textByte = text.getBytes("UTF-8");
		Base64.Encoder encoder = Base64.getEncoder();
		System.out.println(encoder.encodeToString(textByte));
	}

}
